package com.adopapa.nezhacloud.innerapi.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.adopapa.nezhacloud.common.RestResponse;
import com.adopapa.nezhacloud.innerapi.config.ServiceConstants;
import com.adopapa.nezhacloud.innerapi.factory.InnerLoginFallbackFactory;

@FeignClient(contextId = "InnerUserInfoService", value = ServiceConstants.AUTHC_SERVICE, //
		fallbackFactory = InnerLoginFallbackFactory.class)
public interface InnerUserInfoService {

	@GetMapping(path = "/userinfo/userinfo/{userId}")
	public RestResponse getUserInfo(@PathVariable String userId);

}
